package com.itheima.blog.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.blog.article.dto.contributeForLastYearDTO;
import com.itheima.blog.article.entity.TBlog;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 博客文章表 Mapper 接口
 * </p>
 * @author lin
 * @since 2023-07-12
 */
public interface TBlogMapper extends BaseMapper<TBlog> {

    List<contributeForLastYearDTO> contributeForLastYear(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);

    Integer selectUserId(@Param("id") Long id);
}
